package com.jhclothing.product.mapper;

import com.jhclothing.product.domain.ClothingFabricRelation;

import java.util.List;

/**
 * 服饰品类与布料关联Mapper接口
 */
public interface ClothingFabricRelationMapper {

    /**
     * 批量新增服饰品类与布料关联信息
     *
     * @param clothingFabricRelationList 服饰品类和布料关联列表
     * @return
     */
    public int batchClothingFabricRelation(List<ClothingFabricRelation> clothingFabricRelationList);

    /**
     * 通过服饰品类ID删除服饰品类和布料关联信息
     *
     * @param clothingTypeId 服饰品类ID
     * @return
     */
    public int deleteClothingFabricRelationByClothingTypeId(Long clothingTypeId);

    /**
     * 批量删除服饰品类与布料关联信息
     *
     * @param clothingTypeIds 服饰品类ID列表
     * @return
     */
    public int deleteClothingFabricRelation(Long[] clothingTypeIds);
}
